import { createRouter, createWebHistory } from 'vue-router';
import List from '../components/List.vue'

const routes = [
    {
        path:'/',
        component:List
      },
      {
        path:'/audit',
        name:'audit',
        component: () => import( '../components/Audit.vue')
      },
]

const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes
  })
  
  router.beforeEach(() => { // 路由跳转前
  
  })
  
  export default router